<?php
/**
 * Created by PhpStorm.
 * User: 轶杰
 * Date: 2016/8/10
 * Time: 10:27
 */
$this->registerCssFile('@web/css/backstage.css',['depends'=>['app\assets\AppAsset']]);
$this->registerCssFile('@web/css/article.css',['depends'=>['app\assets\AppAsset']]);
$this->registerCssFile('@web/css/medium-editor.min.css',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/js/medium-editor.min.js',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/js/highlight.js',['depends'=>['app\assets\AppAsset']]);
$this->registerCssFile('@web/css/beagle.min.css',['depends'=>['app\assets\AppAsset']]);

?>
<div class="main">
    <!--右侧内容-->
    <div class="cont">
        <div class="title">文章预览</div>
        <div class="details">
            <div class="details_operation clearfix">
                <div class="bui_select">
                    <input type="button" value="添&nbsp;&nbsp;加" class="add">
                </div>
                <div class="fr">
                    <div class="text">
                        <span>日期：</span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1"><?= date("Y-m-d "); ?></option>
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1">Believe in yourself.</option>
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
<!--                        <input type="text" value="" class="search">-->
                    </div>
                </div>
            </div>
            <h3>此页是刚才提交的文章预览，已经自动识别段落和句子，请用鼠标<b>双击</b>方法练习中要用到的关键句，他们将会被记录下来，选中单词或短语来利用弹出的气泡加粗或强调</h3>
            <article class="article">
                <?=$article;?>
            </article>
            <form action="./?r=admin/readadd" method="post">
                <input name="article" type="hidden" id="article">
                <input name="type" value="2" type="hidden">
                <input type="submit" class="btn" id="submit"><input type="reset" class="btn">
                <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
            </form>
        </div>
    </div>
</div>
